package cn.hdu.liang.core.service.product;

import cn.hdu.liang.core.bean.product.Sku;
import cn.hdu.liang.core.query.product.SkuQuery;
import cn.itcast.common.page.Pagination;

import java.util.List;


public interface SkuService {

    public Integer addSku(Sku sku);

    public Sku getSkuByKey(Integer id);

    public List<Sku> getSkusByKeys(List<Integer> idList);

    public Integer deleteByKey(Integer id);

    public Integer deleteByKeys(List<Integer> idList);

    public Integer updateSkuByKey(Sku sku);

    public Pagination getSkuListWithPage(SkuQuery skuQuery);

    public List<Sku> getSkuList(SkuQuery skuQuery);

    public List<Sku> getStock(Integer productId);

}
